package com.gjy.design.bridge.factory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 09:29:11
 */
public class DbPersist implements DataPersist {

    private final String url;

    public DbPersist(String url) {
        this.url = url;
    }

    @Override
    public void persist(String data) {
        System.out.println("写入数据库 " + url + " => " + data);
    }

}
